<script type="text/javascript" charset="utf-8">
	
	function showUserInfo() {
		var p = parent.sy.dialog({
			title : '用户信息',
			href : '/user/my/userinfo',
			width : 490,
			height : 285,
			buttons : [ {
				text : '修改密码',
				handler : function() {
					var f = p.find('form');
					f.form('submit', {
						url : '/user/my/usermodpwd',
						success : function(d) {
							var json = $.parseJSON(d);
							if (json.success) {
								p.dialog('close');
							}
							parent.sy.messagerShow({
								msg : json.msg,
								title : '提示'
							});
						}
					});
				}
			} ],
		});
	}
	
	function mylogout(){
		if (confirm("您确定要退出平台吗？"))
		top.location = "/logout";
		return false;
	}

</script>
<div style="position: absolute;left: 10px;top:1px;">
	<h1>{{=settings.SITE.SITE_NAME}}</h1>
</div>
<div id="sessionInfoDiv" style="position: absolute;right: 5px;top:1px;">
  [<strong>{{=username}}</strong>]，欢迎你！您使用[<strong>{{=userip}}</strong>]IP登录！
</div>

<div style="position: absolute; right: 0px; bottom: 0px; ">
	<!--a href="javascript:void(0);" class="easyui-menubutton" data-options="menu:'#layout_north_pfMenu',iconCls:'icon-ok'">更换皮肤</a--> <a href="javascript:void(0);" class="easyui-menubutton" data-options="menu:'#layout_north_kzmbMenu',iconCls:'icon-help'">控制面板</a> <a href="javascript:void(0);" class="easyui-menubutton" data-options="menu:'#layout_north_zxMenu',iconCls:'icon-back'">注销</a>
</div>

<!--
<div id="layout_north_pfMenu" style="width: 120px; display: none;">
	<div onclick="sy.changeTheme('default');">default</div>
	<div onclick="sy.changeTheme('black');">black</div>
	<div onclick="sy.changeTheme('bootstrap');">bootstrap</div>
	<div onclick="sy.changeTheme('gray');">gray</div>
	<div onclick="sy.changeTheme('metro');">metro</div>
</div>-->

<div id="layout_north_kzmbMenu" style="width: 100px; display: none;">
	<div onclick="showUserInfo();">个人信息</div>
	<div class="menu-sep"></div>
    <!--
	<div>
		<span>更换主题</span>
		<div style="width: 120px;">
			<div onclick="sy.changeTheme('default');">default</div>
			<div onclick="sy.changeTheme('gray');">gray</div>
			<div onclick="sy.changeTheme('black');">black</div>
			<div onclick="sy.changeTheme('bootstrap');">bootstrap</div>
			<div onclick="sy.changeTheme('metro');">metro</div>
		</div>
	</div>
    -->
</div>

<div id="layout_north_zxMenu" style="width: 100px; display: none;">
<!--
	<div onclick="loginDialog.dialog('open');">锁定窗口</div>
	<div class="menu-sep"></div>
	<div onclick="logout();">重新登录</div>
	<div onclick="logout(true);">退出系统</div>
-->
	<div onclick="mylogout();">退出系统</div>
</div>

